<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href='<?php echo base_url()?>'>
<link rel="stylesheet" type="text/css" href="public/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="public/admin/css/admin.css"/>
<script src="public/common/js/jquery.js"></script>
<script src="public/common/js/plug/wbox/wbox-min.js"></script>
<link rel="stylesheet" type="text/css" href="public/common/js/plug/wbox/wbox/wbox.css">
<script>
$(function(){
	table_show(0);	
	$('.tab ul li').each(function(index){
		$(this).click(function(){
			$('.tab ul li').removeClass('cur');	
			$(this).addClass('cur');
			table_show(index);
		});										  
	});	  
	$("#image_frame").wBox({
		requestType: "iframe",
		title: "图片管理",
		target:"<?php echo site_url('admin/image/box_show')?>",
		iframeWH:{width:800,height:400}
	});
})
function table_show(index)
{
	$('.table').hide();
	$('.table:eq('+index+')').show();
}
</script>
</head>
<body>
	<div id="sys">
	    <?php echo $this->position->get_position();?>
   		<div class="sys_center">
        	<div class="tab left">
            	<ul>
                	<li class="cur">基本设置</li>
                    <li>高级设置</li>
                </ul>
            </div>
            <div class="clear"></div>
            <div class="tab_content">
          		<!-- 基本设置 start -->
                <form action="<?php echo site_url('admin/article/add_article')?>" method="post">
            	<table class="table">
                	<tr><th>参数名</th><th>参数值</th><th>参数说明</th></tr>
					<tr><td class='center'>标题：</td><td><input class='input_txt' type='text' name='article_title'></td><td class='center'><span class='red'>*</span></td></tr>
					<tr><td class='center'>标志：</td><td><input type="checkbox" name="article_zhiding" value='1'>置顶 <input type="checkbox" name="article_tuijian" value='1'>推荐</td><td class='center'><span class='red'>*</span></td></tr>
					<tr><td class='center'>来源：</td><td><input type="text" name="article_source" value="未知" class='input_txt'></td><td class='center'><span class='red'>*</span></td></tr>
					<tr><td class='center'>作者：</td><td ><input type="text" name="article_author" value="未知" class='input_txt'></td><td class='center'><span class='red'>*</span></td></tr>
					<tr><td class='center' style='line-height:100px;'>缩略图：</td><td class='center'><input id='pic_path' class='input_txt left' type="text" name="article_thumb_image" value="" > <a id="image_frame" href="<?php echo site_url('admin/image/box_show')?>" class="left">上传图片</a></td><td id='show_pic_path'  class='center'><img src="public/common/images/no_pic.gif" width="100px" height="100px"></td></tr>
					<tr><td class='center'>发布栏目：</td><td >
					<select name="category_id" style=''>
						<?php if($category_tree):?>
                              <option value="0">- -请选择栏目- -</option>
                              <?php echo $category_tree;?>
                        <?php else:?>
                              <option value='0'>没有对应分类</option>
                        <?php endif;?>
					</select></td><td class='center'><span class='red'>*</span></td></tr>
					<tr><td class='center'>内容：</td><td colspan=2><textarea name='article_content' id='ckeditor'></textarea><?php echo display_ckeditor($ckeditor)?></td></tr>
					<tr><td align="center" colspan="2"><input type="submit" name="submit" class="submit" value="提交" /> &nbsp;&nbsp;<input type="reset" name="reset" class="reset" value="重置" /></td><td>&nbsp;</td></tr>
				</table>
                <!-- 基本设置 end -->
                
                <!-- 高级设置 start -->
                <table class="table">
                	 <tr><th>参数名</th><th>参数值</th><th style='width:400px;'>参数说明</th></tr>
					 <tr><td class='center'>页面关键字(SEO)：</td><td><input class='input_txt' type=text name='article_keywords'></td><td><span class='red'>*</span></td></tr>
					 <tr><td class='center'>页面描述(SEO)：</td><td><textarea class="textarea" name='article_desc'></textarea></td><td><span class='red'>*</span></td></tr>
					 <tr><td class='center'>是否新窗口打开：</td><td><input type=radio value='1' name='article_new_window'>是 <input type=radio value='0' checked  name='article_new_window'>否</td><td><span class='red'>*</span></td></tr>
                     <tr><td align="center" colspan="2"><input type="submit" name="submit" class="submit" value="提交" /> &nbsp;&nbsp;<input type="reset" name="reset" class="reset" value="重置" /></td><td>&nbsp;</td></tr>
                </table>
                </form>
                <!-- 高级设置 end -->
            </div>
        </div>
    </div>
    <script>
    
    </script>
</body>
</html>